package midone.exchangeskill.net.api;

/**
 * Created by 想法的猫 on 2016/7/22.
 * 接口响应回调
 */
public class UrlResponse<T> {
    public Call getResCall() {
        return resCall;
    }

    public void resCall(Call<T> resCall) {
        this.resCall = resCall;
    }

    Call resCall;


    public interface Call<T> {
        void onResponse();

        void onSuccess(T t);

        void onFailed(String msg);

        void onError(Throwable throwable);
    }

}
